class Job {
	String title
	String details	
	JobType type
	
	String companyName
	String contactEmail
	
	Location location

	Date dateCreated
	
	
	static belongsTo = [category:Category]
	
	static constraints = {
		title(blank:false)
		type()
		location(nulable:false)
		details(blank:false)
		companyName(blank:false)
		contactEmail(email:true)
	}
	
	String toString() {
		"${title} - ${companyName} [${type}]"
	}	
}

enum JobType {
	FULL_TIME, PART_TIME, FREELANCE
}
